package com.ruoyi.procurement.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 采购记录对象 ps_procure
 * 
 * @author ruoyi
 * @date 2023-10-10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName(value = "ps_procure",autoResultMap = true)
@ApiModel("采购记录对象")
public class PsProcure extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 物品名称 */
    @Excel(name = "物品名称")
    private String psGoodsTypeId;

    /** 采购金额 */
    @Excel(name = "采购金额")
    private BigDecimal psAmount;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private BigDecimal psNum;

    /** 数量单位 */
    @Excel(name = "数量单位")
    private String psUnit;
    //库存id
    @ApiModelProperty("库存id")
    private String psGoodsId;
    //采购图片
    @Excel(name = "采购图片")
    private String psUrl;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal psPrice;

    /** 种类 */
    @Excel(name = "种类")
    private String pstType;


    @Excel(name = "规格")
    private String pstSpecification;
    /** 种类 */
    @Excel(name = "创建人名称")
    private String createByName;

    /** 删除标志 0存在 2删除 */
    private String delFlag;
}
